package com.feige.pojo.vo;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;
import java.util.List;

@ApiModel(value="DeptVo对象")
public class DeptVo extends BaseDeptVo{


    @ApiModelProperty(value = "负责人")
    private String leader;

    @ApiModelProperty(value = "联系电话")
    private String phoneNumber;

    @ApiModelProperty(value = "邮箱")
    private String email;

    @ApiModelProperty(value = "部门状态（1正常 0停用）")
    private Integer status;

    @ApiModelProperty(value = "创建时间")
    private Date gmtCreate;

    public DeptVo() {
    }

    public DeptVo(Long id, String deptName, Long pid, List<BaseDeptVo> children, String leader, String phoneNumber, String email, Integer status, Date gmtCreate) {
        super(id, deptName, pid, children);
        this.leader = leader;
        this.phoneNumber = phoneNumber;
        this.email = email;
        this.status = status;
        this.gmtCreate = gmtCreate;
    }

    public String getLeader() {
        return leader;
    }

    public void setLeader(String leader) {
        this.leader = leader;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    @Override
    public String toString() {
        return "DeptVo{" +
                "BaseDeptVo{" +
                "id='" + getId() + '\'' +
                ", deptName='" + getDeptName() + '\'' +
                ", pid='" + getPid() + '\'' +
                ", children=" + getChildren() +
                '}'+
                "leader='" + leader + '\'' +
                ", phoneNumber='" + phoneNumber + '\'' +
                ", email='" + email + '\'' +
                ", status=" + status +
                ", gmtCreate=" + gmtCreate +
                '}';
    }
}
